primes -> sieve1(from1(s1(s1(0))))
from1(X) -> cons2(X, n__from1(s1(X)))
head1(cons2(X, Y)) -> X
tail1(cons2(X, Y)) -> activate1(Y)
if3(true, X, Y) -> activate1(X)
if3(false, X, Y) -> activate1(Y)
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
sieve1(cons2(X, Y)) -> cons2(X, n__filter2(X, sieve1(activate1(Y))))
from1(X) -> n__from1(X)
filter2(X1, X2) -> n__filter2(X1, X2)
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(X) -> X
↳ QTRS
↳ DependencyPairsProof
primes -> sieve1(from1(s1(s1(0))))
from1(X) -> cons2(X, n__from1(s1(X)))
head1(cons2(X, Y)) -> X
tail1(cons2(X, Y)) -> activate1(Y)
if3(true, X, Y) -> activate1(X)
if3(false, X, Y) -> activate1(Y)
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
sieve1(cons2(X, Y)) -> cons2(X, n__filter2(X, sieve1(activate1(Y))))
from1(X) -> n__from1(X)
filter2(X1, X2) -> n__filter2(X1, X2)
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(X) -> X
FILTER2(s1(s1(X)), cons2(Y, Z)) -> IF3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
SIEVE1(cons2(X, Y)) -> CONS2(X, n__filter2(X, sieve1(activate1(Y))))
IF3(true, X, Y) -> ACTIVATE1(X)
ACTIVATE1(n__from1(X)) -> FROM1(X)
FILTER2(s1(s1(X)), cons2(Y, Z)) -> SIEVE1(Y)
SIEVE1(cons2(X, Y)) -> SIEVE1(activate1(Y))
ACTIVATE1(n__cons2(X1, X2)) -> CONS2(X1, X2)
ACTIVATE1(n__filter2(X1, X2)) -> FILTER2(X1, X2)
PRIMES -> SIEVE1(from1(s1(s1(0))))
SIEVE1(cons2(X, Y)) -> ACTIVATE1(Y)
PRIMES -> FROM1(s1(s1(0)))
FILTER2(s1(s1(X)), cons2(Y, Z)) -> ACTIVATE1(Z)
IF3(false, X, Y) -> ACTIVATE1(Y)
FROM1(X) -> CONS2(X, n__from1(s1(X)))
TAIL1(cons2(X, Y)) -> ACTIVATE1(Y)
primes -> sieve1(from1(s1(s1(0))))
from1(X) -> cons2(X, n__from1(s1(X)))
head1(cons2(X, Y)) -> X
tail1(cons2(X, Y)) -> activate1(Y)
if3(true, X, Y) -> activate1(X)
if3(false, X, Y) -> activate1(Y)
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
sieve1(cons2(X, Y)) -> cons2(X, n__filter2(X, sieve1(activate1(Y))))
from1(X) -> n__from1(X)
filter2(X1, X2) -> n__filter2(X1, X2)
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(X) -> X
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
FILTER2(s1(s1(X)), cons2(Y, Z)) -> IF3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
SIEVE1(cons2(X, Y)) -> CONS2(X, n__filter2(X, sieve1(activate1(Y))))
IF3(true, X, Y) -> ACTIVATE1(X)
ACTIVATE1(n__from1(X)) -> FROM1(X)
FILTER2(s1(s1(X)), cons2(Y, Z)) -> SIEVE1(Y)
SIEVE1(cons2(X, Y)) -> SIEVE1(activate1(Y))
ACTIVATE1(n__cons2(X1, X2)) -> CONS2(X1, X2)
ACTIVATE1(n__filter2(X1, X2)) -> FILTER2(X1, X2)
PRIMES -> SIEVE1(from1(s1(s1(0))))
SIEVE1(cons2(X, Y)) -> ACTIVATE1(Y)
PRIMES -> FROM1(s1(s1(0)))
FILTER2(s1(s1(X)), cons2(Y, Z)) -> ACTIVATE1(Z)
IF3(false, X, Y) -> ACTIVATE1(Y)
FROM1(X) -> CONS2(X, n__from1(s1(X)))
TAIL1(cons2(X, Y)) -> ACTIVATE1(Y)
primes -> sieve1(from1(s1(s1(0))))
from1(X) -> cons2(X, n__from1(s1(X)))
head1(cons2(X, Y)) -> X
tail1(cons2(X, Y)) -> activate1(Y)
if3(true, X, Y) -> activate1(X)
if3(false, X, Y) -> activate1(Y)
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
sieve1(cons2(X, Y)) -> cons2(X, n__filter2(X, sieve1(activate1(Y))))
from1(X) -> n__from1(X)
filter2(X1, X2) -> n__filter2(X1, X2)
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(X) -> X
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPOrderProof
FILTER2(s1(s1(X)), cons2(Y, Z)) -> SIEVE1(Y)
SIEVE1(cons2(X, Y)) -> SIEVE1(activate1(Y))
ACTIVATE1(n__filter2(X1, X2)) -> FILTER2(X1, X2)
SIEVE1(cons2(X, Y)) -> ACTIVATE1(Y)
FILTER2(s1(s1(X)), cons2(Y, Z)) -> ACTIVATE1(Z)
primes -> sieve1(from1(s1(s1(0))))
from1(X) -> cons2(X, n__from1(s1(X)))
head1(cons2(X, Y)) -> X
tail1(cons2(X, Y)) -> activate1(Y)
if3(true, X, Y) -> activate1(X)
if3(false, X, Y) -> activate1(Y)
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
sieve1(cons2(X, Y)) -> cons2(X, n__filter2(X, sieve1(activate1(Y))))
from1(X) -> n__from1(X)
filter2(X1, X2) -> n__filter2(X1, X2)
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(X) -> X
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
ACTIVATE1(n__filter2(X1, X2)) -> FILTER2(X1, X2)
Used ordering: Polynomial Order [17,21] with Interpretation:
FILTER2(s1(s1(X)), cons2(Y, Z)) -> SIEVE1(Y)
SIEVE1(cons2(X, Y)) -> SIEVE1(activate1(Y))
SIEVE1(cons2(X, Y)) -> ACTIVATE1(Y)
FILTER2(s1(s1(X)), cons2(Y, Z)) -> ACTIVATE1(Z)
POL( from1(x1) ) = 2x1
POL( if3(x1, ..., x3) ) = x1 + 1
POL( sieve1(x1) ) = max{0, -3}
POL( n__from1(x1) ) = 2x1
POL( divides2(x1, x2) ) = x2
POL( cons2(x1, x2) ) = x1 + x2
POL( activate1(x1) ) = x1
POL( FILTER2(x1, x2) ) = x2
POL( filter2(x1, x2) ) = x1 + x2 + 2
POL( ACTIVATE1(x1) ) = x1
POL( SIEVE1(x1) ) = x1
POL( n__filter2(x1, x2) ) = x1 + x2 + 2
POL( s1(x1) ) = max{0, -1}
POL( n__cons2(x1, x2) ) = x1 + x2
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
from1(X) -> cons2(X, n__from1(s1(X)))
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
from1(X) -> n__from1(X)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(X) -> X
filter2(X1, X2) -> n__filter2(X1, X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
FILTER2(s1(s1(X)), cons2(Y, Z)) -> SIEVE1(Y)
SIEVE1(cons2(X, Y)) -> SIEVE1(activate1(Y))
SIEVE1(cons2(X, Y)) -> ACTIVATE1(Y)
FILTER2(s1(s1(X)), cons2(Y, Z)) -> ACTIVATE1(Z)
primes -> sieve1(from1(s1(s1(0))))
from1(X) -> cons2(X, n__from1(s1(X)))
head1(cons2(X, Y)) -> X
tail1(cons2(X, Y)) -> activate1(Y)
if3(true, X, Y) -> activate1(X)
if3(false, X, Y) -> activate1(Y)
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
sieve1(cons2(X, Y)) -> cons2(X, n__filter2(X, sieve1(activate1(Y))))
from1(X) -> n__from1(X)
filter2(X1, X2) -> n__filter2(X1, X2)
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(X) -> X
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
SIEVE1(cons2(X, Y)) -> SIEVE1(activate1(Y))
primes -> sieve1(from1(s1(s1(0))))
from1(X) -> cons2(X, n__from1(s1(X)))
head1(cons2(X, Y)) -> X
tail1(cons2(X, Y)) -> activate1(Y)
if3(true, X, Y) -> activate1(X)
if3(false, X, Y) -> activate1(Y)
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
sieve1(cons2(X, Y)) -> cons2(X, n__filter2(X, sieve1(activate1(Y))))
from1(X) -> n__from1(X)
filter2(X1, X2) -> n__filter2(X1, X2)
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(X) -> X